<?php

class ActivityLog extends Eloquent{
	protected $table = 'activity_logs';
	protected $primaryKey = 'id';

	public function activityType(){
		return $this->belongsTo('ActivityType', 'activity_type_id');
	}

	public function fromID(){
		return $this->belongsTo('ID', 'from_id');
	}

	public function toID(){
		return $this->belongsTo('ID', 'to_id');
	}

	public function toContent(){
		return $this->belongsTo('ID', 'content_id');
	}

	public function coordinates(){
		return this->belongsTo('Coordinate','coordinate_id');
	}
}